// 自定义标签样式 - 全局可用
.custom-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  
  // 用能单元类型标签 - 更鲜艳的颜色
  &.group-factory {
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #5a6fd8;
    box-shadow: 0 3px 6px rgba(102, 126, 234, 0.3);
  }
  
  &.group-building {
    color: #ffffff;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-color: #0d7a6f;
    box-shadow: 0 3px 6px rgba(17, 153, 142, 0.3);
  }
  
  &.group-workshop {
    color: #ffffff;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-color: #e685f5;
    box-shadow: 0 3px 6px rgba(240, 147, 251, 0.3);
  }
  
  &.group-process {
    color: #ffffff;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-color: #3d8bfe;
    box-shadow: 0 3px 6px rgba(79, 172, 254, 0.3);
  }
  
  &.group-device {
    color: #ffffff;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-color: #9ce5e2;
    color: #333333;
    box-shadow: 0 3px 6px rgba(168, 237, 234, 0.3);
  }
  
  // 能源类型标签 - 更鲜艳的颜色
  &.energy-water {
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #5a6fd8;
    box-shadow: 0 3px 6px rgba(102, 126, 234, 0.3);
  }
  
  &.energy-electric {
    color: #ffffff;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-color: #e685f5;
    box-shadow: 0 3px 6px rgba(240, 147, 251, 0.3);
  }
  
  &.energy-gas {
    color: #ffffff;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-color: #0d7a6f;
    box-shadow: 0 3px 6px rgba(17, 153, 142, 0.3);
  }
  
  &.energy-heat {
    color: #ffffff;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-color: #3d8bfe;
    box-shadow: 0 3px 6px rgba(79, 172, 254, 0.3);
  }
  
  // 状态标签 - 更鲜艳的颜色
  &.status-success {
    color: #ffffff;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-color: #0d7a6f;
    box-shadow: 0 3px 6px rgba(17, 153, 142, 0.3);
  }
  
  &.status-danger {
    color: #ffffff;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-color: #e685f5;
    box-shadow: 0 3px 6px rgba(240, 147, 251, 0.3);
  }
  
  // 其他常用标签颜色 - 更鲜艳的渐变
  &.tag-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #5a6fd8;
    box-shadow: 0 3px 6px rgba(102, 126, 234, 0.3);
  }
  
  &.tag-success {
    color: #ffffff;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-color: #0d7a6f;
    box-shadow: 0 3px 6px rgba(17, 153, 142, 0.3);
  }
  
  &.tag-warning {
    color: #ffffff;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-color: #e685f5;
    box-shadow: 0 3px 6px rgba(240, 147, 251, 0.3);
  }
  
  &.tag-danger {
    color: #ffffff;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-color: #3d8bfe;
    box-shadow: 0 3px 6px rgba(79, 172, 254, 0.3);
  }
  
  &.tag-info {
    color: #ffffff;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-color: #9ce5e2;
    color: #333333;
    box-shadow: 0 3px 6px rgba(168, 237, 234, 0.3);
  }
  
  // 特殊颜色标签 - 更鲜艳的渐变
  &.tag-purple {
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #5a6fd8;
    box-shadow: 0 3px 6px rgba(102, 126, 234, 0.3);
  }
  
  &.tag-pink {
    color: #ffffff;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-color: #e685f5;
    box-shadow: 0 3px 6px rgba(240, 147, 251, 0.3);
  }
  
  &.tag-cyan {
    color: #ffffff;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-color: #3d8bfe;
    box-shadow: 0 3px 6px rgba(79, 172, 254, 0.3);
  }
  
  &.tag-teal {
    color: #ffffff;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-color: #0d7a6f;
    box-shadow: 0 3px 6px rgba(17, 153, 142, 0.3);
  }
  
  &.tag-orange {
    color: #ffffff;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-color: #e685f5;
    box-shadow: 0 3px 6px rgba(240, 147, 251, 0.3);
  }
  
  &.tag-indigo {
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #5a6fd8;
    box-shadow: 0 3px 6px rgba(102, 126, 234, 0.3);
  }
  
  // 尺寸变体
  &.tag-small {
    padding: 2px 8px;
    font-size: 10px;
  }
  
  &.tag-large {
    padding: 5px 14px;
    font-size: 13px;
  }
  
  // 圆角变体
  &.tag-rounded {
    border-radius: 12px;
  }
  
  &.tag-square {
    border-radius: 0;
  }
  
  // 悬停效果
  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
}
